<!DOCTYPE html>
<html>
<head>
    <title>User Management</title>
</head>
<body>
    <h1>User List</h1>
    <a href="/users/create">Create New User</a>
    <table border="1">
        <tr>
            <th>ID</th>
            <th>Name</th>
            <th>Email</th>
            <th>Created At</th>
            <th>Actions</th>
        </tr>
        {{range .}}
        <tr>
            <td>{{.ID}}</td>
            <td>{{.Name}}</td>
            <td>{{.Email}}</td>
            <td>{{.CreatedAt}}</td>
            <td>
                <a href="/users/edit/{{.ID}}">Edit</a> | 
                <a href="/users/delete/{{.ID}}" onclick="return confirm('Are you sure?')">Delete</a>
            </td>
        </tr>
        {{end}}
    </table>
</body>
</html>